import os
from pydantic_settings import BaseSettings


class Settings(BaseSettings):
    BASE_URL: str = os.getenv("BASE_URL", "http://shop-xo.hctestedu.com/")  # https://api.weixin.qq.com
    SECRET_KEY: str = os.getenv("Secret_KEY", "a8aa4150a8f37f607db7f0537403bcd1")
    APP_ID: str = os.getenv("APP_ID", "wx0affea6ee2d00150")
    ENV: str = os.getenv("ENV", "dev")  # 环境变量，如 dev/staging/prod


settings = Settings()
# 邮箱配置
MAIL_SERVER = "imap.163.com"
MAIL_USE_SSL = True
MAIL_PORT = 465
MAIL_USERNAME = "m17586957113@163.com"
MAIL_PASSWORD = "HETQMFDHUNGACPBY"
MAIL_DEFAULT_SENDER = "m17586957113@163.com"

SECRET_KEY = os.urandom(24)

SECRET_KE = "fafadgrawewga"
REPORTS_HTML_PATH = "./reports/html/report_new.html"
REPORTS_ALLURE_PATH = "./reports/allure-report/report_new"
'''资源路径配置'''
SEARCH_URL = "?s=api/search/index"
GOODS_URL = "?s=api/goods/detail"
FAVOR_URL = "?s=api/goods/favor"
BROWSE_URL = "?s=api/usergoodsbrowse/index"
'''用户信息'''
USERNAME = 'huace_tester'
PASSWORD = 'huace_tester'
